	package automat;

import static org.junit.Assert.*;

import org.junit.Before;
import org.junit.Test;

public class TestAutomat {

	Billetautomat bill;
	
	@Before
	public void setUp() throws Exception{
		bill = new Billetautomat();
	}
	
	@Test
	public final void testGetBilletpris() {
		assertEquals(10, bill.getBilletpris());
	}

	@Test
	public final void testIndsætPenge() {
		bill.indsætPenge(10);
		assertEquals(10, bill.getBalance());
	}

	@Test
	public final void testGetBalance() {
		assertEquals(0, bill.getBalance());
	}

	@Test
	public final void testReturpenge() {
		bill.indsætPenge(10);
		assertEquals(10, bill.getBalance());
	}

	
	
	
	
	
	
	
	
}
